﻿#region Using Statements
using System;
#endregion

namespace DirectZZT.Shared.Network
{
    #region Server packet id

    /// <summary>
    /// Specifies the Ids of the packets sent from server to clientsvcf s.
    /// </summary>
    public enum ServerPacketId
    {
        /// <summary>
        /// Default value.
        /// </summary>
        Invalid = 0,
        /// <summary>
        /// Sends the entire world.
        /// </summary>
        World = 1,
        /// <summary>
        /// A world action (board change etc.).
        /// </summary>
        WorldAction = 2,
        /// <summary>
        /// A player update (position etc.).
        /// </summary>
        PlayerUpdate = 3,
        /// <summary>
        /// A player joined.
        /// </summary>
        PlayerJoin = 4,
        /// <summary>
        /// A player left.
        /// </summary>
        PlayerLeave = 5,
    }

    #endregion

    /// <summary>
    /// Contains the server packet.
    /// </summary>
    [Serializable()]
    public class ServerPacket
    {
        /// <summary>
        /// The Id of this packet.
        /// </summary>
        public ServerPacketId Id;
    }
}
